CC:=gcc

create: 01_create.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

sum_sqr: 02_sum_sqr.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

sum_sqr_thread: 02_sum_sqr_thread.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@


cancel: 03_cancel.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

race_condition: 04_race_condition.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

lock: 05_lock.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@

mqueue_test: 06_mqueue_test.c
	-$(CC) $^ -o $@
	-./$@
	-rm $@